﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Albatross.SharePoint.Configuration"
    targetNamespace="Albatross.NET/Cfg/Albatross.SharePoint.Configuration.xsd"
    elementFormDefault="qualified"
    xmlns="Albatross.NET/Cfg/Albatross.SharePoint.Configuration.xsd"
    xmlns:mstns="Albatross.NET/Cfg/Albatross.SharePoint.Configuration.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">


  <xs:complexType name="SiteCollection">
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
      <xs:element name="spsite">
        <xs:complexType>
          <xs:attribute name="Name" type="xs:string" use="required"/>
          <xs:attribute name="Url" type="xs:string" use="required"/>
          <xs:attribute name="UserName" type="xs:string" use="optional"/>
          <xs:attribute name="Password" type="xs:string" use="optional"/>
          <xs:attribute name="Impersonate" type="xs:boolean" use="optional"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  
  <xs:element name="sharepoint">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="sites" type="SiteCollection"/>
        <xs:element name="settings">
          <xs:complexType>
            <xs:attribute name="msdnURL" type="xs:string" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
